package cn.hzc.fortess.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@Controller
@RequestMapping("/global")
public class GlobalErrorController {

 
    @RequestMapping(path = "/error")
    public String errorPage() {
        return "/404.html";
    }

  
    @RequestMapping(path = "/sessionError")
    public String errorPageInfo(Model model) {
        model.addAttribute("tips", "会话超时,请重新登录！");
        return "/login.html";
    }
}
